package top.zimang.yorn.activity;

import android.content.Context;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;

public class BaseActivity extends AppCompatActivity implements View.OnClickListener {
    private static Context context;
    @Override
    public void onClick(View view) {

    }

    public static Context getContext() {
        return context;
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        ActCollector.addAct(this);
        super.onCreate(savedInstanceState);
        context=getApplicationContext();
        ActionBar actionBar=this.getSupportActionBar();
        if (actionBar!=null){
            actionBar.hide();
        }
    }

    @Override
    public void onDestroy() {
        ActCollector.remove(this);
        super.onDestroy();
    }



}
